package pl.edu.pw.polygen.modeler.server.xml;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class Edge {
	private Integer begin;
	private Integer end;
	private String type;
	private Integer controlA;
	private Integer controlB;
	private Integer boundary = 0;
	private Double step;
	
	public Integer getBegin() {
		return begin;
	}
	
	public void setBegin(Integer begin) {
		this.begin = begin;
	}
	
	public Integer getEnd() {
		return end;
	}
	
	public void setEnd(Integer end) {
		this.end = end;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Integer getControlA() {
		return controlA;
	}

	public void setControlA(Integer controlA) {
		this.controlA = controlA;
	}

	public Integer getControlB() {
		return controlB;
	}

	public void setControlB(Integer controlB) {
		this.controlB = controlB;
	}
	
	public Integer getBoundary() {
		return boundary;
	}

	public void setBoundary(Integer boundary) {
		this.boundary = boundary;
	}
	
	public Double getStep() {
		return step;
	}

	public void setStep(Double step) {
		this.step = step;
	}

	@Override
	public String toString(){
		return new String("Edge: " + begin + " " + end + " type: " + type+ "A: " + controlA + " B: " + controlB + "\n");
	}
	
}
